Release 10.1A: OpenEdge Development:
Programming Interfaces


Representing data-relations in XML Schema

In a ProDataSet, you form an association between two member temp-tables by creating a DATA-RELATION between the parent and child temp-table.

The following Progress-specific XML Schema attributes are added to help fully describe data-relations:

If the column or columns from the parent temp-table are also the components in a unique index, the data-relation is represented with the combination of XML Schema unique (unique index definition) and keyref definitions. Here is the syntax for keyref:

Syntax
<xsd:keyref name="RelationName" refer="UniqueIndexName"  
            prodata:nested="BooleanValue"> 
  <xsd:selector xpath="ChildTableName" /> 
  <xsd:field xpath="FieldName" /> 
   ... 
  <xsd:field xpath="FieldName" /> 
</xsd:keyref> 

If the column or columns from the parent temp-table are not components in a unique index, the data-relation is represented with the Progress-specific relation definition. Here is the syntax for relation:

Syntax
<prodata:relation name="RelationName"  
                  prodata:nested="BooleanValue" 
                  prodata:reposition="BooleanValue" 
                  prodata:parent="ParentTableName" 
                  prodata:child="ChildTableName" 
                  prodata:relationFields="RelationFields" /> 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095